package com.jthinker.blog.bean.vo;

import java.io.Serializable;
import java.util.List;

/**
 * User: Gang Chen
 * Date: 2015/8/3 19:41
 */
public class CategoryTreeVO implements Serializable
{
    private static final long serialVersionUID = 1L;

    private Long id;

    private int categoryGroup;

    private String name;

    private Long parentId = 0L;

    private String slug;

    private CategoryTreeVO parent;

    private List<CategoryTreeVO> children;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public int getCategoryGroup()
    {
        return categoryGroup;
    }

    public void setCategoryGroup(int categoryGroup)
    {
        this.categoryGroup = categoryGroup;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public String getSlug()
    {
        return slug;
    }

    public void setSlug(String slug)
    {
        this.slug = slug;
    }

    public CategoryTreeVO getParent()
    {
        return parent;
    }

    public void setParent(CategoryTreeVO parent)
    {
        this.parent = parent;
    }

    public List<CategoryTreeVO> getChildren()
    {
        return children;
    }

    public void setChildren(List<CategoryTreeVO> children)
    {
        this.children = children;
    }
}
